
.zm-panel-mask {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .5);

  &.desktop-close {
    .zm-panel {
      left: 72px;
    }
  }

  &.desktop-open {
    .zm-panel {
      left: 230px;
    }
  }

  &.mobile-close {
    .zm-panel {
      left: 10px;
      right: 10px;
    }
  }

  &.mobile-open {
    .zm-panel {
      left: 230px;
    }
  }

  // background: rgba(0,0,0,0.2);
  .zm-panel {
    display: flex;
    position: absolute;
    box-sizing: border-box;

    &.has-footer {
      padding-bottom: 70px;
    }

    right: 20px;
    left: 220px;
    top:70px;
    bottom:20px;
    flex-direction: column;
    background: #fff;
    border-radius: 6px;

    // box-shadow: 0 2px 8px 0 #dcdcdc;
    .zm-panel-header {
      position: relative;
      margin: 10px 15px 0;
      padding: 5px 0;
      font-size: 20px;
      line-height: 30px;
      border-bottom: 1px solid #ddd;

      .zm-panel-close {
        position: absolute;
        right: 15px;
        top: 10px;
        font-size: 20px;
        color: #ccc;
        cursor: pointer;
        transition: all 0.3s linear;

        &:hover {
          transform: rotate(180deg) scale(1.2);
          color: #999;
        }

        &:active {
          color: #f56c6c;
        }
      }
    }

    .zm-panel-body {
      flex: 1;
      overflow: auto;
      padding: 0 15px 15px;
    }

    .zm-panel-footer {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      border-top: 1px solid #ddd;
      height: 60px;
      line-height: 60px;
      // text-align: center;
      padding: 0 20px;
    }
  }
}